<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>smart-sso-server</title>
        <!--引入 element-ui 的样式，-->
        <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
        <!-- 必须先引入vue，  后使用element-ui -->
        <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.14/vue.min.js"></script>
        <script src="https://unpkg.com/http-vue-loader"></script>
        <!-- 引入element 的组件库-->
        <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    </head>
    <body>
    <div id="app">
        <h2>smart-sso-server</h2>

        <input type="hidden" value="${userName}" id="username">

        <b>登录用户名</b>：${userName}<br/>

        <b>端口</b>：${serverPort}<br/>

        <b>sessionId</b>：${sessionId}<br/>

        <br/><a href="${logoutUrl}">单点退出</a>

        <iframe id="iframe" src="http://127.0.0.1:8888/#/list" frameborder="0" class="pc iframe"  scrolling="auto" width="100%" height="1000px" allow="microphone;camera;midi;encrypted-media;">
        </iframe>
    </div>
    </body>
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    <script>
        new Vue({
            el: '#app',
            created() {
               //sessionStorage.setItem("username",document.getElementById("username").value)
                window.sessionStorage.setItem('username',document.getElementById("username").value)
                console.log(window.sessionStorage.getItem("username"))
            },
            methods: {

            }
        });

    </script>
</html>